//
//  KCSession.h
//  KConnect
//
//  Created on 19/03/09.
//  Copyright 2009 Xtreme Labs Inc. All rights reserved.
//

#import "KConnect/KConnect.h"
#import "URLCacheConnection.h"

@interface KCSession : NSObject<URLCacheConnectionDelegate> {
  NSMutableArray *connections;
  NSString *apiKey;
  BOOL testing;
}


@property (nonatomic, readonly) NSString * apiKey;

+ (KCSession*)sessionWithApiKey:(NSString*)apiKey;
+ (KCSession*)session;


- (void)send:(KCMessage*)message;
- (void)useTesting:(BOOL)testing;

@end
